﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using V = Science.Mathematics.VectorCalculus;

namespace VectorCalculus5Ed.Chapter1.Section1
{
    public class Example08
    {
        public Example08()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
            V.Point p = new V.Point(3);
            p[0] = 3.0;
            p[1] = 5.0;

            V.Point q = new V.Point(3);
            q[0] = 4.0;
            q[1] = 7.0;


            V.Vector v = new V.Vector(p,q);
         
            result += v[0].ToString() + "   " +
                v[1].ToString() + "   " + v[2].ToString() + "\r\n";
           
            // (b) and (c) are omitted.
        }
    }
}

// 1   2   0
